from django.contrib import admin
from .models import Content, Like, Comment
# Register your models here.

class Content_Admin(admin.ModelAdmin):
    list_display = ('id', 'uid', 'content', 'time')
    fields = ('uid', 'content')

class Like_Admin(admin.ModelAdmin):
    list_display = ('id', 'uid', 'tid', 'time')
    fields = ('uid', 'tid')

class Comment_Admin(admin.ModelAdmin):
    list_display = ('id', 'uid', 'tid', 'content', 'time')
    fields = ('uid', 'tid', 'content')

admin.site.register(Content, Content_Admin)
admin.site.register(Like, Like_Admin)
admin.site.register(Comment, Comment_Admin)

